#!/bin/sh

# Copyright(c) 2011 OpenDomo Services SL. Licensed under GPL v3 or later

#FIXME This file's function could be implemented directly in execRemoteScript.sh

if test -z "$1"
then
   echo "Usage: $0 [IP]"
   exit 0
fi

ALF=/var/opendomo/oddiscovery-agentlist
PASSWORD=`cat /etc/opendomo/discovery/password`
SSHBATCH="/usr/bin/sshbatch passw $PASSWORD host "

$SSHBATCH admin@$1 exec "cat /etc/opendomo/uid" acceptfp

